package com.neusoft.work.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.work.po.CareLevel;
import com.neusoft.work.po.PageResponseBean;
import com.neusoft.work.po.ResponseBean;
import com.neusoft.work.service.CareLevelService;

@RequestMapping("/CareLevelController")
@RestController
public class CareLevelController {
	@Autowired
	private CareLevelService cls;
	
	@RequestMapping("/queryByStatus")
	public PageResponseBean<List<CareLevel>> queryByStatus(Integer status,Long cur,Long number){
		return cls.queryByStatus(status, cur, number);
	}
	
	@RequestMapping("/addCareLevel")
	public ResponseBean<Integer> addCareLevel(CareLevel careLevel){
		return cls.addCareLevel(careLevel);
	}
	
	@RequestMapping("/updateCareLevel")
	public ResponseBean<Integer> updateCareLevel(CareLevel careLevel){
		return cls.updateCareLevel(careLevel);
	}
}
